<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>招聘计划新增界面</title>
<%-- <script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.min.js"/>"></script>
<script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/locale/easyui-lang-zh_CN.js"/>"></script>
<link rel="stylesheet" type="text/css"href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/default/easyui.css"/>" />
<link rel="stylesheet" type="text/css"href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/icon.css"/>" /> --%>

</head>
	<style type="text/css">
		.insert_bt {
			background: #CDDEF4;
		}
	</style>
	<script type="text/javascript">
		$(function() {
			$('.return_rplan_add').linkbutton({
				onClick : function() {
					$(".insert_rplan_add").panel({
						href : "hr_rplan"
					});
				}
			});
			
			$("#save_btn_rplan_add").linkbutton({onClick:function(){
				$("<form method='post'>").appendTo(document.body).form({
					url: 'hr_rplan_form_add_c',
					onSubmit: function(params){
						
						params["recplanDescribe"] = $("#recplanDescribe").textbox("getText");
						params["recplanPstartdate"] = $("#recplanPstartdate").datetimebox("getText");
						params["recplanPenddate"] = $("#recplanPenddate").datetimebox("getText");
						params["recplanActualdate"] = $("#recplanActualdate").datetimebox("getText");
						params["recplanAcenddate"] = $("#recplanAcenddate").datetimebox("getText");
						params["recplanPerson"] = $("#recplanPerson").textbox("getText");
						params["recplanMode"] = $("#recplanMode").textbox("getText");
						params["recplanPlace"] = $("#recplanPlace").textbox("getText");
						params["recplanEstimate"] = $("#recplanEstimate").textbox("getText");
						params["recplanActualmoney"] = $("#recplanActualmoney").textbox("getText");
						params["recplanModescribe"] = $("#recplanModescribe").textbox("getText");
						
					},
					success:function(v){
						v = eval("(" + v + ")");
						if(v.success){
						/* 	$(".insert_pta").panel({
								href : "to_pay"
							}); */
							$.messager.alert('提示', '新增成功');
						}else{
							$.messager.alert('错误', '对不起，操作失败，原因：' + v.message);
						}
					}
				}).submit();
			}});
		});
	</script>
	<div class="easyui-panel insert_rplan_add"data-options="fit:true,border:false,tools:'#insert_rplan_add'">
		<!-- 按钮 -->
		<div id="insert_rplan_add" class="insert_rplan_add">
			<a href="#" class="easyui-linkbutton return_rplan_add" iconCls="icon-reload"
				plain="true" title="返回" data-options="text:'返回'"></a> 
			<a class="easyui-linkbutton" id= 'save_btn_rplan_add'  data-options="text:'完成',iconCls:'icon-add',plain:true"></a>
			<span style="float: right; font-size: 12px; margin-top: 5px;"></span>
		</div>
		<!-- 添加面板 -->
		<div style="height: 10px;"></div>
		<div style="margin-left: 10px">
			<div style="font-size: 14px;">概要</div>
			<div style="border-top: 2px solid #19aa8d; width: 420px; display: inline-block; margin-right: 15px;height:260px;">
				<table cellspacing="10" style="margin-left: 50px;">
					<tbody>
						
						<tr>
							<td><input class="easyui-textbox" id="recplanDescribe"
								data-options="label:'计划描述', width:250,labelWidth:130" /></td>
							<td></td>
						</tr>
						<tr>
							<td><input class="easyui-datetimebox" id="recplanPstartdate"
								data-options="label:'计划开始时间', width:250,labelWidth:130" /></td>
							<td></td>
						</tr>
						<tr>
							<td><input class="easyui-datetimebox" id="recplanPenddate"
								data-options="label:'计划结束时间', width:250,labelWidth:130" /></td>
							<td></td>
						</tr>
						<tr>
							<td><input class="easyui-datetimebox" id="recplanActualdate"
								data-options="label:'实际开始时间', width:250,labelWidth:130" /></td>
							<td></td>
						</tr>
						<tr>
							<td><input class="easyui-datetimebox" id="recplanAcenddate"
								data-options="label:'实际结束时间', width:250,labelWidth:130" /></td>
							<td></td>
						</tr>
						<tr>
							<td><input class="easyui-textbox" id="recplanPerson"
								data-options="label:'负责人', width:250,labelWidth:130" /></td>
							<td><input class="easyui-textbox" id=" "
								data-options="width:80" /></td>
						</tr>
					</tbody>
				</table>
			</div>
			<div style="border-top: 2px solid #19aa8d; width: 420px; display: inline-block;height:260px;">
				<table cellspacing="10" style="margin-left: 50px;">
					<tbody>
						<tr>
							<td><input class="easyui-textbox" id="recplanMode"
								data-options="label:'招聘方式', width:250,labelWidth:130" /></td>
							<td></td>
						</tr>
						<tr>
							<td><input class="easyui-textbox" id="recplanPlace"
								data-options="label:'招聘地点', width:250,labelWidth:130" /></td>
						</tr>
						<tr>
							<td><input class="easyui-textbox" id="recplanEstimate"
								data-options="label:'预计费用', width:250,labelWidth:130" /></td>
						</tr>
						<tr>
							<td><input class="easyui-textbox" id="recplanActualmoney"
								data-options="label:'实际费用', width:250,labelWidth:130" /></td>
							<td></td>
						</tr>
						<tr>
							<td><input class="easyui-textbox" id="recplanModescribe"
								data-options="label:'费用描述', width:250,labelWidth:130" /></td>
								<td></td>
						</tr>
					</tbody>
				</table>
			</div>
			<div style="font-size: 14px;">备注</div>
			<div
				style="border-top: 2px solid #19aa8d; width: 860px; height: 130px; display: inline-block; margin-right: 15px; padding-top: 10px;">
				<input class="easyui-textbox"
					data-options="width:860,height:100,multiline:true" />
			</div>
		</div>
	</div>
</body>
</html>